<form name="form1" action="" method="post" enctype="multipart/form-data">
<input type="hidden" name="item" value="" />
<input type="hidden" name="mode" value="" />
<input type="hidden" name="type" value="" />
<table width="100%" border="0" cellpadding="5" cellspacing="2" class="list">
<tbody>
  <tr>
    <td width="5%" align="center" class="color-tr-td"><b>STT</b></td>
    <td width="50%" align="center" class="color-tr-td"><b>Flash</b></td>
   </tr>
   <?php if (count ($this->arrFlash) > 0) {
   		$i=0;
   		foreach ($this->arrFlash as $flash) {
   ?>
	   <tr class="<?php if ($i%2==0) echo 'blue'; else echo 'white'; ?>">
	     <td align="center"><?php echo ($i+1);?></td>
	     <td align="center" onclick="frmSubmit('m=flash&a=edit', '<?php echo $flash['id']; ?>', '', '')">
	     <?php if (FunctionCommon::checkImage($flash['code'])) : ?>
	     <?php echo FunctionCommon::flashHtml(FunctionCommon::getImage('flash', $flash['code'])); ?>
	     <?php else :?>
	     	<img src="<?php echo FunctionCommon::getImage('flash', $flash['code']);?>" />
	     <?php endif;?>
	     </td>
	   </tr>
   <?php 
   		$i++;
   		}
   }
   ?>
</tbody>
</table>
</form>